#include <bits/stdc++.h>
using namespace std;
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
using ll = long long;
void solve()
{
    string n;
    cin >> n;
    map<char, int> a;
    for (ll i = 0; i < n.size(); i++)
    {
        a[n[i]]++;
    }
    for (const auto &[x, y] : a)
    {
        cout << x << ":" << y;
        cout << endl;
    }
    return;
}
int main()
{
    int t = 1;
    // cin >> t;
    while (t--)
    {
        solve();
    }
    return 0;
}
